package org.example.types.exception;

import org.example.types.common.ResponseCode;
import org.example.types.model.Response;
import org.springframework.web.bind.annotation.ExceptionHandler; /**
 * @author lxc18
 * @date 2025/4/8 14:08
 * @description RateLimitExceededException
 */
public class RateLimitExceededException extends RuntimeException{

    private final int limit;
    private final int windowSize;

    public RateLimitExceededException(int limit, int windowSize) {
        this.limit = limit;
        this.windowSize = windowSize;
    }
    public int getLimit() {
        return limit;
    }
    public int getWindowSize() {
        return windowSize;
    }
}
